from appium.webdriver.common.mobileby import MobileBy

from app.base_page import BasePage
from app.editormember_page import EditMemberPage


class AddMemberPage(BasePage):
    # 手动添加联系人
    def add_member_manually(self):
        self.find_and_click(MobileBy.XPATH,"//*[@text='手动添加联系人']")
        return EditMemberPage(self.driver)

    # 添加联系人成功消息提示
    def success_message(self):
        return self.get_toast_message()